<form name="form" ng-init="vm.init();refresh();" ng-submit="vm.generate(form.$valid)" novalidate>
  <div class="row x-page-header">
    <div class="col-md-12">
      <div class="x-page-title">APIDOC文档注释</div>
      <div class="pull-right">
        <button class="btn btn-primary" type="submit">生成注释</button>
        <button id="copy" class="btn btn-success" type="button" data-clipboard-action="copy"
              data-clipboard-target="#code" ng-disabled="vm.code == ''">复制</button>
        <button class="btn btn-danger" type="button" ng-click="vm.clearAll()">重置</button>
      </div>
    </div>
  </div>
  <div class="row x-page-body">
    <div class="col-md-7">
      <fieldset>
        <legend>参数配置<font color="green">（双击输入框可复制上一行内容）</font></legend>
        <div class="x-page-scope" data-apidocs data-ads-params="vm.apidocs"></div>
      </fieldset>
    </div>
    <div class="col-md-5">
      <fieldset>
        <legend>文档注释</legend>
        <pre class="x-page-scope x-output" id="code">{{vm.code}}</pre>
      </fieldset>
    </div>
  </div>
</form>
